import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/user/login',
      name: '用户登录',
      component: () => import('@/pages/user/UserLoginPage.vue'),
    },
    {
      path: "/user/register",
      name: "用户注册",
      component: () => import("@/pages/user/UserRegisterPage.vue")
    },
    {
      path:"/admin/userManage",
      name:"用户管理",
      component: () => import("@/pages/admin/UserManagePage.vue")
    }
  ],
})

export default router
